bst add max and min .