refactored Huffman to make use of FileBufferReader and FileBufferWriter