forward-backward tentatively working; moving on to viterbi