mapper-reducer code for clustering users