Small change to Function2.java
Added javadoc to PolynomialFunction.java