implement computation of Xi-values in Baum-Welch training