The viterbi algorithm | Synapse