log likelihood function for normal distribution