Update Polynomial.scala