Addition: Modified Dijkstra's Algorithm