Hidden Markov Models Implementation of Forward, Backward, Viterbi, Expectation-Maximization (Baum-Welch) algorithms. Example (the dishonest casino)