More priority queue exercises