Add batch() to Layer, #29