fn lzw_encode(data: &[u8], buffer: &mut Vec<u8>)
Encodes the data into the provided buffer.
The first byte is the minimum code size, followed by LZW data.