Regularized least squares fisher linear discriminant with applications to image recognition