Add search in 2d matrix