Begin by locating a page p containing k=val (as for one query).
k=
Scan backwards and forwards from p to find matches.
Thus, Costpmr = Costone + (bq-1).(1+Ov)