Implemented the getMinSpanningTree function for the uGraph class. This returns a minumum spanning tree for the uGraph object