added compare functions

Added comparison functions for 16-bit and 32-bit unsigned integers.