dijkstras single source shortest path without minimum priority queue