comparing to serial dijkstra