LZW Compression with Variable-Width Encoding

Chained hash table mapping prefix, suffix pairs to codes, bit-level packing at variable-widths, and dictionary pruning that remaps live codes when the table fills.