BSON utility library