SEARCH-A-2D-MATRIX problem solved with binary search method