A huffman encoding implementation in Java