Rendering the within-class scatter matrix nonsingular