Given a sorted array of integers and a target, return the index of the target. If not found, return -1.
nums = [-1,0,3,5,9,12], target = 9
4
nums = [-1,0,3,5,9,12], target = 2
-1