Spike sorter for electrophysiology data