Added companion object to PriorityQueue

Allow implicit ordering now.