priorityq public member function definition