Worked on binary search. Needs more work, but usable for now.