A fast and accurate algorithm for unsupervised clustering around centroids