Implementation of an AVL tree to make an EditorTree