don't separately malloc each child, since the list of children never grows
Merge pull request #2 from swolchok/master

don't separately malloc each child, since the list of children never grows