Adding the code for linear regression cost function with regularization as well as for computing the gread of the cost.