Added more stats function for correlation/covariance.
Added stats function for weighted samples.