Started Dijkstra implementation.