Implemented heap for PriorityStore