Skyline puzzle: priority queues / heaps