Added Dijkstra\'s algorithm.