Additional map() method for PriorityFunctionalQueue that lets you
specify a Comparator for the returned PriorityFunctionalQueue