[Olena-patches] cleanup-2008 2721: Add a distance by propagation sample code.