docs: def add_element(self, priority, element, count=None):
          """Adds an element with a specific priority.
  
          :param priority: priority of the element.
          :param element: element to add.
  
          """
          if count is None:
              count = next(self.counter)
          entry = [priority, count, element]
          self.element_finder[element] = entry
          heapq.heappush(self.pq, entry)