Update polynomial.h

Small changes. Declarations, parameters etc.