Added special case for 2x2 matrix. This can result in significant speed-up when dealing with bivariate normals.