Search a 2D Matrix

O(m+n) and O(lgm + lgn)