chunk_rows function

Determine row breakpoints for dividing a dataset into chunks for parallel processing