Java implementation of an optimized Huffman Code encoder/decoder