Use packages from crates.io as dependencies.
Replaced div_rem with separate division and remainder.