update BalancedBinaryTree class