hack to estimate code size with huffman compression