Realizing A Priority Queue Using Comparator