bug fixed, AVL trees now working properly