Activity for n-ary Huffman Template Algorithm