Iterative Solution to multiplying polynomials