Moved the LS regression code into the header (so it can use any iterator)
Now compiles successfully
Goal detectors are now finding lines properly