AVL Tree and diagnostic class