Text this: Calculating program for Huffman and Shannon-Fano codes