Implemented 4a encoding using huffman tree
Completed first time