Solution of eight queens problem by genetic algorithm