Split data into batches