Optimal Searching for sublist and setting p >= qi