one bug in viterbi.c is fixed