Fitting Composite Horizontal Curves Using the Total Least-Squares Method