Ordinary and Total Least Squares