updating the BST