Cross-Entropy Application: Combinatorial Optimization, Counting, and Rare Events Estimation