Toward an optimal theory and computer-based implementation of pattern recognition feature selection