Update logisticRegularizedCostFunction