forward backward algorithm and hmms 472346