almost finished,  Problem with encoding and decoding.  HuffmanTree is perfect