Driver code
let n = 4 , m = 5 , x = 8 ; let mat = [ [ 0 , 6 , 8 , 9 , 11 ] , [ 20 , 22 , 28 , 29 , 31 ] , [ 36 , 38 , 50 , 61 , 63 ] , [ 64 , 66 , 100 , 122 , 128 ] ] ; sortedMatrixSearch ( mat , n , m , x ) ;