Added Dijkstra algorithm implementation