DROP-D: Dimension reduction by orthogonal projection for discrimination