optimal contingency table culling