first step of compaction - reduce.
renamed kernel_scan.cpp -> kernel_compact.cpp