search val from ordered 2-dim array
search val from ordered 2-dim array