add nCr function to help calculate probabilities