PrimMST using f-heap