search range in sorted array