An Efficient Algorithm for Thresholding Monte Carlo Tree Search