solving onemax problem using genetic algorithm