algo4: binarysearch: Search for a range