Starting implementation with huffman tree