G2SWEEP function

Generalized inverse matrix of type 2 for linear regression