Adds findMin/Max methods to tree.