Optimizing the CVaR via Sampling