bernoulli log likelihood function