Added debug output for peaks. Fixed shared memory indexing bug in peak detection kernel.
Added outline for segmentation kernel.