Implement binary search for degree > 20