Function that performs binary search to find value less than or equal to first value of the pair
int binary_search ( vector < pair < int , int > > vec , int n , int a ) { int low , high , mid ; low = 0 ; high = n - 1 ;