Mapreduce implementation of K-means clustering algorithm