Added NzBatch to simplify SparseBuffer implementation