algo4: binarysearch: Search a 2D matrix