Find shortest path between two points.