lmdb version 1
lmdb: still too slow
switch to an unsorted array: significant speedup