quadratic regression linear algebra