Update Dijkstra's algorithm.cpp