Simple compression system written in Java