Store maximal frequency in contingency table