lz77 compress (partial)