Cmaes feature

Don't merge this until #267 has been merged.