changed to K-cluster implementation

Started with a copy of Kruskal's spanning tree algorithm, changed it to
a k-cluster algorithm.