Find index i in a sorted array A s.t. A[i] == i