Change Maximum and Minimum in bst