iterative binary search added