get covariance matrix of ms data