AVL: Change API not to carry around comparison functions