Create StatewiseSorter.java