NN: new definition of cost function
Better explanation of logistic regression cost function
Minor improvement