Used Hadoop to create a minmax tree.