# File lib/facet/heap.rb, line 149
  def push(elm)
    i = @heap_size
    @heap_size += 1
    while i > 0 and cmp(elm, @array[(j = parent(i))])
      @array[i] = @array[(i = j)]
    end
    @array[i] = elm
  end