Fixed a typo. Renamed xdeg --> x_degree, ydeg --> y_degree
Make sure all polynomial models accept as input numbers, 1D and 2D arrays.