Nonparametric detection of nonuniformity and dependence with Binary Expansion Testing (BET). See Kai Zhang (2019) BET on Independence, Journal of the American Statistical Association, 114:528, 1620-1637, and Zhigen Zhao, Michael Baiocchi, Kai Zhang. SorBET: A Fast and Powerful Algorithm to Test Dependence of Variables.