Fixed Barry's Binary Search Function

Fixed errors that were causing the code not to compile
Merge pull request #86 from Shadeslayer345/patch-9

Fixed Barry's Binary Search Function