logical/gray code/huffman code