Linear regression implementation
Oops, replaced logistic with linear