MATLAB: Operations research, probabilistic models final project. Implement a HMM