Adds an element to the priority queue.
Example:
var pq = new PriorityQueue<string> ((a, b) => {
return strcmp (a, b);
});
pq.add ("hello");
assert (pq.size () == 1);
| element |
the element to add. |