does the processing of an entry
result[newi] = configuration[i];
result[newi+1] = configuration[i+n];