Vectorized multivariate logistic regression

and neural network predictions