function to generate a sequence from a hmm
computation of the transition and emission matrix for the hmm
function to create the viterbi matrix
viterbi function to compute the most probable path and the itinerary
decoding of a sequence of weather thanks to the viterbi algorithm