.
american roulette algorithm hapq