Quick binary search I wrote as a challenge