vertical method multiply polynomials