A Huffman Encoder built in Java