improve Binary search performance