add `compare` module with comparators

Take two. The heap code will follow later.
Should this be using `Natural.compare` instead of `cmp`? Is this library supposed to replace existing compare infrastructure or supplement it?