How To Write Binary Search Algorithm Python