lzw lua code