calcPoly function

Calculate polynomial fits over a surface