Implementation of Huffman coding and LZW on Java