update avl tree