Merge pull request #1 from nifengle/binary_search

implements iterative binary search
Merge pull request #2 from nifengle/master

Merge pull request #1 from nifengle/binary_search