Improved AVL tree