Added a polyval regression
fixed a problem with polyval on non-square polynomials