A generic library to work with b-trees