simple functions on BST