add max/min recursive function for bst