Shortest Path Exercise