cov and corrcoef: add weights support