Faster versions of cor and cov.
Merge branch 'master' into faster-cov
Merge pull request #2311 from tshort/faster-cov

Faster cov and cor