created and tested PriorityQueue dequeueing function, everything looks OK