BST function signatures
added max and min functions