add `compare` module with comparators

Take two. The heap code will follow later.
Can you give these variables names like `fido4`, `ruff3`, `fido3` to make the comparisons below clearer? It's hard to always go back and reference what the variables are.