Baum Welch training for HMMs