regularized linear regression cost function implemented and submitted