add `compare` module with comparators
parameterize `IntervalHeap` with a comparator
add a `Borrow` comparator