Find number of ' L ' coordinates which are greater than the ' R ' value of the current segment
int greater = Math . Max ( 0 , N - ( upper_bound ( lvalues , 0 , segments . GetLength ( 0 ) , segments [ i , 1 ] ) ) ) ;