LeetCode: Search a 2D Matrix

Approach 1: two ways binary search