add balance method to AVLTree