add `compare` module with comparators

Take two. The heap code will follow later.
Oh! I missed the FIXME. Carry on then!