shifted array search