new function - resample array according to clean row/col division by stepsize