[Olena-patches] 1853: Add a log version of front-based distance computation.