viterbiAlgo backbone