C++ code implementing AVL Tree