how to write comparator function for priority queue ? how to write comparator function for lower_bound & upper_bound function so that it will return index or element just less the or equal to given key ?