Moved priority queue class; updated references appropriately.