Added sparse batching for batch allocator.