Two Geometrical Applications of the Method of Least Squares