--- from: http://rosettacode.org/wiki/Longest_common_substring