back to MAX_REPS

next step grow the repetitions array as needed (realloc?)

don't use too much memory too fast