Implementaton of parallelized Dijkstra's Algorithm.