Applications of Priority Queues