Add priority queue snippet