baum_welch numpy.array matrix multiplication