Make pqueue_update work for increase/decrease

Change the API for pqueue_update (and rename to pqueue_update_element).
Now works for increase/decrease, though in 2 * lg(n) operations rather
than lg(n).  This isn't too big of a deal since it's still O(lg(n)).
Also make event.c use the new pqueue_update.