hidden markov model case study and junction tree algorithm 2457787