Covariance function added to stats module.