mstepE function

M-step for a parameterized Gaussian mixture model