CAM-ES algorithm in Haskell