Edited in new avl tree