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