On the Equivalence of Linear Discriminant Analysis and Least Squares