Clustering with spacing maximization