Add measure_paths() and output lengths of geodesics form the grid