Small implementation of mapreduce