Create logisticRegularizedCostFunction

The outline for this code was provided by Andrew Ng in his Coursera ML class