added factorial and binomial function to mathematica notebook