Improve quotient/remainder. See issue #51.