Added ksi and gamma calculations, part of the Baum-Welch algorithm for param. reestimation