Added a priority queue class