A flexible and nearly optimal sequential testing approach to randomized testing: QUICK-STOP.