Compact and fast file format representing a tree