Added Viterbi and Forward-Backward algorithms