used scipy builtin capability for n choose k