Made it so that extendMatch does not make out of bounds slice references when corMatchLen or orgMatchLen is 0