binary search using high and low indices is tricky