Added Kruskal's MST