Started to implement Dijkstra