Update Optimize.java

added stuff