public void Remove(string key)
{
int index = 0;
while (index<this.keys.Count)
{
string thiskey = (string) this.keys[index];
if (this.owner.Compare(thiskey, key)==0)
{
this.values.RemoveAt(index);
this.keys.RemoveAt(index);
return;
}
index++;
}
throw new BplusTreeBadKeyValue("cannot remove missing key: "+key);
}