add one

search a 2D matrix