Added program calculating covariance matrix.