Allow multithreaded CMAES.

Are you okay with my use of auto_ptr?