Made some avl function parameters const