Find a value in an array, or find the ith smallest element without sorting. Indices start at 1, as in CLRS.
Binary search needs a sorted array; unsorted input is sorted first.