long division with polynomials (with a remainder)