Viterbi sparse spike detection