15-214 MapReduce implementation, modified to be used for Tournament