NEW: Kruskal's MST algorithm (which is somewhat easier to implement fast compared to Prim's).