compute_CV function

Compute the critical value for two-sample KBQD tests