iterative version of binary search