Added priority queue class