finished dijkstra copied to repo