Fixed binary search algorithm bug and tests
Merge pull request #84 from abulrim/master

Fixed binary search algorithm bug and tests