Added dijkstra algorithm