simple linear fitting

Doesn't yet return a LsqFitResult,, because the uncertainties are being
computed by linfit. Could (should?) be outsourced into another function.