synthetic division for dividing polynomials