Forward-Backward algorithm

Forward backward is an algorithm used in hidden Markov models.