How Does A Binary Search Algorithm Python