Find the item in a given array that has the difficulty closest to the target value
an array of stimuli sorted by difficulty
ability estimate
the index of stimuli
The input array of stimuli must be sorted by difficulty.
Find the item in a given array that has the difficulty closest to the target value