refactoring recursive sums and multiplications
refactoring viterbi: max
LogProbabilities are sortable