Add a Heap class that orders elements by a comparator instead of an
explicit key as in Closure's implemenatation. This class also supports
an O(n) remove operation which can be used to re-prioritize an element.