Row + 1 denotes row if indexing of array start from 1
document . write ( row + 1 + " " + boxNumber + " " ) ; } } function lower_bound ( a , low , high , element ) { while ( low < high ) { var middle = low + ( high - low ) / 2 ; if ( element > a [ middle ] ) { low = middle + 1 ; } else { high = middle ; } } return low ; }