hidden markov backward and viterbi algorithms