added support for gradient information with cmaes when available