math.integers, bignum/f, improve performance.
math.integers, bignum/f, improve performance.

This changes avoids looping many times if the denominator is a power of
2. After this change, the implementation matches the linked sbcl
algorithm.  This was probably a mistake done when porting the algorithm.
Basically, as an optimization, all trailing zeros are removed from the
base2 representation of the denominator to have smaller bignums to
divide. But the previous factor implementation didn't take this into
account when making the initial guess of the shift of the numerator to
obtain a result in the range [2^54-1,2^53]. The loop would then correct
the initial guess by a factor of 2 at each iteration, so it would run as
many iteration as the denominator base2 power reduction, instead of only
a few times. For pathological cases, the speed up is huge (10^4):
1 1000 2^ bignum/f

factor/factor,tgunr/factor,mrjbq7/factor,bjourne/factor,nicolas-p/factor,nicolas-p/factor,slavapestov/factor,mrjbq7/factor,factor/factor,bpollack/factor,factor/factor,AlexIljin/factor,AlexIljin/factor,AlexIljin/factor,slavapestov/factor,tgunr/factor,AlexIljin/factor,slavapestov/factor,nicolas-p/factor,bpollack/factor,mrjbq7/factor,slavapestov/factor,tgunr/factor,bpollack/factor,bpollack/factor,mrjbq7/factor,bjourne/factor,AlexIljin/factor,bjourne/factor,bpollack/factor,bjourne/factor,nicolas-p/factor,bjourne/factor,bjourne/factor,tgunr/factor,bpollack/factor,bjourne/factor,bpollack/factor,AlexIljin/factor,factor/factor,slavapestov/factor,AlexIljin/factor,nicolas-p/factor,mrjbq7/factor,factor/factor,factor/factor,slavapestov/factor,mrjbq7/factor,slavapestov/factor,tgunr/factor,tgunr/factor,nicolas-p/factor,nicolas-p/factor