An adaptive algorithm for feature selection in pattern recognition.