Implemented evaluate_poly and compute_deriv function