enh: automated kmeans selection