before refactoring createLagrangePolynomial with purpose add a the best polynomial search for g(x)
the best approximation for g(x) searching was done