Fix bugs in AVL Tree