speed up multi-class logistic regression using more efficient element access