finished two binomial implementations