moved rebalancing to BinaryTree class