uva 10600
Kruskal's / union-find