lsgr function

Least squares growth rate