regular check. This version is correct and faster.

I am going to reduce the number of tested depth by 1(remove the random depth). I am going to save the cost. So the speed will be 3 times faster.

Signed-off-by: ezheng <ezheng@cs.unc.edu>