allocate memory for child nodes of child threads

minor speed improvement. Now reaches ~500 MNps best case.