Local alignment via recursion, memoized with illustration.