n choose k implemented with a binomial tree