Worked on dijkstra()