Improved version of the Java port of the Sequitur algorithm