Architecting max-spacing k-clustering greedy alg