Add debug printing for avl

Partly solves #92