A network algorithm for performing Fisher’s exact test in r x c contingency tables - Mehta, C R; Patel, N R (J Am Stat Assoc, 1983)