Create compressing.java

The program is use to compress and optimize a given grammer