A network algorithm for performing Fisher’s exact test in contingency tables - Mehta, C R; Patel, N R (Journal of the American Statistical Association, 1983)