Create regression module, factor out lstsq from examples