Adding basic spike sort functions