more serialization code
added polynomial regression algorithm for rangetables