Calculate mean and variance of binomial (#847)

Calculate mean and variance of binomial (#847)

Use E(X)=npE(X)=np, Var(X)=np(1−p)Var(X)=np(1-p).