Implementation of Polynomial Regression