Simple MapReduce implementation