added methods to BST