Prim used priority queue