Prims Algorithm Using Priority Queue Time