search target in 2D matrix