map reduce implementation of the K-means clustering algorithm