add `compare` module with comparators

Take two. The heap code will follow later.
Yeah, I think it would be too cute. We're better off just shortening the method names at some point.