Extracting the useful dimensions using Linear Discriminant Analysis