Created a min priority queue containing only sufficient functions in order to perform Prim's algorithm.