Started on huffman encoding