Added shortest_distance()