implementation for height of avl tree