Implements a few simple MapReduce Functions