expand algo comment
add tests for immutability
fix weighted covariance implementation

Weighted covariance accidentally used squared weights.  Added a test
case and fixed implementation.
Test comparison between CovarianceMatrix and Covariance

Added consistency check.  Surprise!  It turns out that the Covariance
implementation was wrong in the weighted case, sometimes.
go fmt, and remove test logging