Binary Search
let array;
array = [0,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150];
console.log(binarySearch({ array, number: 20 }) );
i = 0;
i = 0;
console.log(binarySearch({ array, number: 130 }) );
i = 0;
array = [0,1,2,3,4,5];
console.log(binarySearch({ array, number: 5 }) );
array = [0,1,2,3,4,5,6];