AI Homework - problem 7, evaluation of poly

Homework at Artificial Intelligence Lab, problem 7, operations on
polynomials: check if poly, evaluation, addition and multiplication of
polys.