speed up motif finding