finished prim and kruskal, both correct, kruskal needs some cleaning