Code

avltree: Iterate through the tree depth-first when clearing it.