public void Set(string key, object map)
{
if (!(map is string))
{
throw new BplusTreeException("BplusTree only stores strings as values");
}
string thestring = (string) map;
byte[] bytes = StringToBytes(thestring);
//this.tree[key] = bytes;
this.tree.Set(key, bytes);
}