Toy Problem to Explore Iterative Non-linear Least Squares

My attempt to write Gauss-Newton iterator to solve non-linear least squares.