Minor formatting
Simplified prims algorithm so that modification of the nodes (to indicate the parent-child heirarchy of the mst) is done inplace. Which was actually always happening but I just didnt take advantage of this.