A simple btree serializer