Extending a common prefix of two array suffixes #
Kasai's LCP array construction and the Z-algorithm both resume comparisons after a prefix whose
length is already known. Array.extendLcp compares the remaining entries in place.
Array.extendLcp_eq_add_lcpLen specifies how much it adds, and Array.extendLcp_eq_lcpLen
recovers the full length when the skipped prefix is known to agree.
@[irreducible]
Starting with length h, compare entries at i + h and j + h and advance while they agree.
The first h entries of the two suffixes are skipped.