Print parseable avl-trees
Various optimization