Create Stack.java

A stack data structure to allow polynomial input simplification.