iterative binary search on ordered list