Priority queue

A Priority Queue is a type of Queue that dequeues according to the priority of its elements.