A Java port of the CUTGEN1.