LZ-based compression algorithm for Java