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