forward_hsmm function

Forward algorithm for homogeneous hidden semi-Markov models