VITERBI ARRAY FINALLY WORKS!!!! YESSSS!!!!