Solved search 2D matrix problem