implemented function to find greatest common substring for *two* sequences in exercise 16