Fix sparse_complex_viterbi explicit duration code

Updated code from the fast_complex_viterbi to sparse_complex_viterbi code