completed the implementation of the MapReduce impl on various data, see comment in the impl for more info