PriorityLinkedQueueModel modified for using Comparator
Sorters modified to work with Comparators