Generalized the interface of the base Queue class.
Added priority_queue.