Mod avl interface

This PR will adapt the AVL interface to the layer structure laid out in issue #103.
But it is costly. We calculated it beforehand anyways, for selecting the bucket and so on. Passing it would be less costly!