Use istreambuf_iterator
WIP implement tree interface