swiched uint32 to int32 (faster on cuda..)
fixed shared memory size for peak detection cache
added masking of bad samples