Practicing genetic algorithms in Ruby