added methods to read/write text files
added Huffman encoder/decoder