adding Prim using priority queue implementation of cpp vector