add `compare` module with comparators

Take two. The heap code will follow later.
Yeah, we might be better off removing this method until there's a motivation for it (for example, a hypothetical `trait PriorityQueue<T, C> where C: Compare<T>`.