Created do file for estimating covariance matrix