implementation of the clustering map-reduce job - prototype