Moved CPU scan operation to common class and made it a template.
Buffers in MC were discarded too quickly and had wrong types
Added compact voxels test