An implementation of LZW compression algorithm in C