Pearson's X^2 test requires some minimum frequency per cell to
avoid an inflated false positive rate. This function will merge
cells with the lowest frequency counts until all the counts are
above the minimum threshold. Cells that have been merged are filled
with NAs. The resulting tables and number of merged cells is
returned.