Computes and prints the covariance matrix.