Added new linear regression implementation