Linear Regression, initial implementation