Generalized Cross-Entropy Methods