Add function attrs avl

Solves #139 and therefor #114 partly.
Nah, the `avl_alloc()` function does not make sense, because it is embedded into another data structure. We should remove it.