now trying to perform the M step - computing the parameters from sufficient statistics