mstep function

M-step for parameterized Gaussian mixture models