add binary search
Merge pull request #4 from mengjiaowang/dev

add binary search