working of mapreduce diagram