Added pivoted binary search