added Huffmann Encoding algorithm