added a binomial coefficient function