Redesigned binary search
Update to cs207 notes