So, you want to serialize a B-Tree?
kerkour.com