Setting up sol to dijkstra's shortest path alg