http://www.lintcode.com/zh-cn/problem/search-a-2d-matrix/

先判断matrix.length == 0 ,再 matrix[0].length==0,(先确定外层,再考虑内层)特殊情况:{{1}},{},{{},{}}

矩阵角标 {{0,1,2,3},

   {4,5,6,7},

   {8,9,10,11}}     row = 3,col =4 , 则位于角标pos的坐标为:pos / col, pos % col。