lower memory usage due to base zero number of children in atree.c