implements iterative binary search
Merge pull request #1 from nifengle/binary_search

implements iterative binary search