make huffman encoder compile
complete implementation of compression function