Simple Huffman Coding In Java