basic priority queue implementation in ChunkCache