linear_reg function

Linear regression