Using global alignment often fails to find shared motifs hidden in larger strings because
(especially if the similar region is found on different
ends of the string) aligning the strings causes gap penalties to rack up.
If we are only interested in comparing the regions
of similarity, then we would like to have some way of disregarding the parts of the
strings that don't resemble each other. The way to do this is to produce alignment scores
for all possible pairs of substrings.
Return: A maximum alignment score along with substrings r and u of s and t,
respectively, which produce this maximum alignment score (multiple solutions may exist,
in which case you may output any one). Use: