binary search ftw++