Binary Search Algorithm Using Python With Javascript