add multinomial logistic model for mnist dataset