Add iterative binary search function