AVL tree implement in cplusplus code