maximum likelihood function of normal distribution