Algorithms for finding common motifs in DNA sequences