Some changes to AVL tree functions.