Working version of FFT based regression, no error
Working version of homework code for linear regression