adapt function

Adaptive P-value Thresholding