Commutable Islands (Kruskal's Algorithm using Disjoint Sets)