Added interface for priorityQueue.
Merge pull request #2937 from RichTeaMan/master

Added interface for priorityQueue.