maximum likelihood estimate of binomial distribution