Analysis of the Total Least Squares Problem and its Use in Parameter Estimation