Improvements to Bijective::Encoder

Use Numeric#divmod in encode, and rewrite decode using Enumerator#reduce (untested).