Dijkstra implementation using minheap for 2.2.0 branch