added max and min value functions for the bst.