tw_group_corr_test function

Tracy-Widom test for residual group correlation