Shortest Path Calculator (Dijkstra's Algorithm)