Given a sorted ascending array `nums` of distinct integers and a `target`, return the index of target, or -1 if it is not present. Run in O(log n).