Use unsigned integers

Unsigned division is faster on some CPUs