use MSB as code length indicator
shorten code generation
update maximum code length
ignore MSB