Mod avl interface

This PR will adapt the AVL interface to the layer structure laid out in issue #103.
Why does this function need type information? It should delete the whole subtree and is used for removing the AVL entirely... why caring about the data in here?