Use Kruskal's algorithm to compute either the minimum-cost spanning 
tree or the maximum-spaced k-clustering of n objects