Update optimize.h

Small bugfixes for differentialEvolution and nelderMead. 

Now the best fit is sent to the caller correctly right after calculating the costs of the swarm elements and before the main loop.