An algorithm to dynamically compute the binomial coefficient.