pattern recognition using genetic algorithm 1