fixing typo in sample that was causing panics

It seems that once you get past the rescaleThreshold size you are going to get panics. It keeps reusing the same array. Looks like a simple typo mistake from your refactoring