fixed viterbi logbase
added forward backward