Calculates the number of combinations (binomial coefficient) of choosing k items from a set of n items.