Given a sorted array of integers and a target, determine if the target exists in the array using binary search.
nums = sorted array of integers, target = integer
true if target exists in nums, false otherwise
Example 1:
Input:
nums = [-1,0,3,5,9,12] target = 9
Output:
true
Explanation:
9 is present in the array.