searches for
keyvalue
search(keyvalue,*pt,&p,&predp,
&last,&predlast,&found);