AVL tree homework