Implementation for heap sorting and huffman compression code for compressing text files.