Compresses text using huffman encoding and a selfmade hashmap