implementation of optimal selective huffman coding, described in Xrysovalantis Kavousianos , Emmanouil Kalligeros , Dimitris Nikolos, Optimal Selective Huffman Coding for Test-Data Compression, IEEE Transactions on Computers, v.56 n.8, p.1146-1152, August 2007.