Added toDouble() method for Fraction.
Fixed errors.
Fixed shallow copy.
Implemented FractionPolynomial.calcExtrema(), assuming all extrema are rational.