Creates a least-squares solver.
The x, y, and w arguments must not be null.
LeastSquaresSolver(this.x, this.y, this.w) { assert(x.length == y.length); assert(y.length == w.length); }