Regularization for Cost function has been added.