A lot of minor fixes after smoke tests
Minor fixes
Fixes for Forward/Backward algorithm
Fixes for Forward/Backward and BaumWelch algorithm
Added valid BM test