log likelihood function bernoulli distribution