Added BatchMixin

It enables pumps to process input in batches.