A Tutorial on the Cross-Entropy Method