binary search without recursion version.

binary search without recursion version.