Greg Hogg's binary search on a sorted list: halve the range each step. bisect does the same search for you.