Implementing derivatives of Gaussian with respect to mu and sigma.