Clean up binary search phase
Clean up binary search phase