Fixup: use precaluculated ln(2)

Includes an increase in the resolution of the precalculated value.
Reusing the existing calcuated value gave unexpected results.
Add composer.json
Add a 5th argument for expire time (redis EXPIRE)