add `compare` module with comparators

Take two. The heap code will follow later.
This doc comment should be fleshed out a bit. It's going to be where people to go figure out "wtf is this module for?".

Make sure to include a few examples here. They're worth 1000 pictures!