search target number in 2-D matrix