Finished Linear Regression Implementation