We can get rid of the array creation and clone here, like this:
```javascript
var covarianceMatrix = scratchCovarianceMatrix;
covarianceMatrix[0] = exx;
covarianceMatrix[1] = exy;
// ...
```