.
american roulette algorithm gcdw