[Olena-patches] proto-1.0 145: Add safe implementation of geodesic algorithms.