fixing some minor bugs
fixed a serious bug. The reaching set assigned to children on their first visit must be a copy of the computed output step or else some children will share a map and pick up unintended value assignments.