dijkstra without heap tested