A dynamic stochastic search algorithm for high-dimensional optimization problems and its application to feature selection