Added utility function iterext.batch()