An Algorithm for Motif Discovery with Iteration on Lengths of Motifs