-log-likelihood, gradient, and hessian for multinomial logit model