BS [Chapter 6.5]: Added priority queues