skeleton for kmeans with one aggregator per cluster center