Clean up binary search