An implementation of LZW compression in Java