working on spike train segmentation