public class heapEntry { int priority; int id; // Indicates which item the priority applies to }