add `compare` module with comparators

Take two. The heap code will follow later.
Haha I love this line of thinking! Too bad it doesn't work out. :)