Clustering. The k-means algorithm