[LintCode] Search a 2D Matrix