viterbi correct for small examples
viterbi correct for small examples, no comments
memory mistake is fixed