fixed problem in longest_common_contig_substr3