hw2 polynomial operations