Template:Gray code by bit width