Scenario reduction in stochastic programming