add `compare` module with comparators

Take two. The heap code will follow later.
" The heap code will follow later."

Presumably that was just "this is a WIP"