Maybe a binary search? Or TODO