Find Pivot (logn complexity)