LZSS in C++