Don't compute decay_factor ** count when not needed anymore: otherwise we eventually get an OverflowError
Merge pull request #484 from chrish42/master

Don't compute decay_factor ** count when not needed anymore