A family of online spike sorting algorithms