remove unnecessary copying
moving to head-and-comp -oriented generation as opposed to left-and-right generation to make it easier to do per-child searching.