toolbox for spike sorting