Create useless_compressor.java

The program is used to remove useless production
Steps to run the program:
1. First run useless_compressor.java
2. Then run useless.java