My own implementation of MapReduce in Java