Find the position of a target value in a sorted array, using an efficient search.
Input
The first line contains an integer n.
The second line contains n distinct integers in strictly increasing order.
The third line contains the integer target.
Output
The 0-based index of target in the array, or -1 if it is not present.