An implementation of the clustering algorithm k-means in J.