Added Dijkstra algorithm.