Speed up lzw

Increases the decoding speed by a factor > 3.