search in two dimensional array