implemented chained interface for batch()

What do you think?

Later we can make `batch#put()` call C directly and build the batch there.