sig
  type t
  val init : int -> Iheap.t
  val in_heap : Iheap.t -> int -> bool
  val decrease : (int -> int -> bool) -> Iheap.t -> int -> unit
  val size : Iheap.t -> int
  val is_empty : Iheap.t -> bool
  val insert : (int -> int -> bool) -> Iheap.t -> int -> unit
  val grow_to_by_double : Iheap.t -> int -> unit
  val remove_min : (int -> int -> bool) -> Iheap.t -> int
  val filter : Iheap.t -> (int -> bool) -> (int -> int -> bool) -> unit
end