Working Prim's algorithm

Can I get a whoop whoop! Needs to be commented, and garbage optimized
(plenty to do there)