How do you minimize a function when you can't take derivatives? CMA-ES and PSO