Discriminatively search for a motif of a given length using given nucleotide sequences