search in 2D sorted array