Priority Queues, Greedy updates

Priority Queues, Greedy updates