On the Solution of Non-linear Least Squares Problems