Class PriorityObject was added

Moreover, class PriorityQueue was refactored so that it uses
PriorityObject instead of a pair