Shortest path of given length