Updated Polynomial class to have getSize() method.
Added toInt() method to Fraction class.