Solutions of Search2DMatrix and SetMatrixZero