dijkstra alg. completed