Creating the covariance matrix of the dataset