Added MapReduce code.