update balance() in BST