simplified transposed binary search