K-means clustering using mapreduce