binary search, fancy! Why use that here?