implementing BST methods