Make HMM MCMC optimization reproducible
Move MCMC demo code into a different file