Implementation of algorithms performing linear regression.