refactoring evaluate_poly: writing less code to do the computation
writing functions to compute derivate and root of "polys"