Integrated AVL tree code, need to test