Genetic algorithm implementation in Elixir