Changing calcPolyValues to be used with arbitrary x points.

#6