Create Poly.java

Deals with input simplification i.e. simplifies polynomials.