Hidden Markov Models. Different algorithms used for hidden markov algorithms