Adaptive Huffman encoding - Coursework for Data Structures course 2009 at University of Helsinki