Added some basic interfaces for linear regression.