created the viterbi class
created the sentence_iterator function