Implement 2 versions of binary search in binarySearchArray.js