Implemented avl_alloc()

Solves #53 .