https://medium.com/nerd-for-tech/binary-search-problem-search-a-2d-matrix-ii-leetcode-240-317b690642bd