A few MemSets for making sure that all memory is initialized.
Make it print the block prefix sums.
Printed the prefixSum (because the blockPrefixSum was all 0)
Made sure that aOut is being written to.
Fixed printCudaArray.
print blockPrefixSum again.
Fix: Instead of nFeatures, the length of the image must be given!
Disabled two of the MemSets again.
Made sure that this checks what it's supposed to check.
Fixed the block size (that is used by the compaction kernel to determine which blockPrefixSum element is to be added).
Fixed an off-by-one: The first thread for first pixel would have copied its pixel adress to the *second* slot in the target array...
Removed printCudaArray