working (simple) priority queue