remove binary search algorithm