viterbi search is optional, re-organized options