costFunction Regularized