pull request

version with binary search