Linear regression now contains the analytic solution, still more work to be done though