Regularized linear regression cost function and gradient
Done with wk5 bias-variance tradeoff