map1.put(key, val);
tree.insert(key, val);
}
// take a snapshot
int snap1 = tree.createSnapshot();
final TreeMap<byte[], byte[]> map2 = new TreeMap<byte[], byte[]>(map1);
// delete every second key
for (int i = 0x10; i < numElements; i += 2) {
byte[] key = Integer.toHexString(i).getBytes();