prepared the methods for implementing AVL balancing in KnowledgeTree