Royal Road Genetic Algorithm in Ruby