Implement a naive priority queue.