lz_copy: min_length optimization