change covariance matrix to accept weight vector

mat64.Matrix would accept matrixes with more than one column.
Enforcing size by using a Vec makes more sense.