added pop_max and pop_min to tree.