added the Prim's minimum spanning tree algorithm