eliminated auxiliary function `prevs`

(slows down viterbi considerably, presumably because those special cases
are no longer specialized)