vastly optimized LogReg, somewhat optimized NN