Implement a solution to the binary search. Ready for pull request.