complete pagewise binary search