add huffman coding related function.
finish Exercise2.63~72