adjusted variable names in avl tree to be clearer