Add least squares routine.
Merge branch 'master' of https://github.com/mmwoodman/sparse
clean up & add to header