table handling for polynomial fit. also return table pointers directly instead of passing double pointers around.

git-svn-id: http://svnhq2.hq.eso.org/p2/trunk/Pipelines/cr2re/cr2rep@163162 318c8218-2dab-440d-9263-6f70bac63e5b