Added iteratitve binary search