Added a priority queue utility. It's completely untested at this point.