faster way to find shared motif