- Two queues are needed.
- One queue is used to store the data elements,
- and another is used for storing priorities.