Python Read Large Binary Search Algorithm Definition