new clustering methods
added resampling parameter for spike waveform extraction