hmmProcess function

hmmProcess calculates the probability distribution of a random process following a Markov chain