setting up methods in BST