Added Barry's Binary Search Function

Removed the irrelevant lines of code