LeetCode: search sorted matrix