rudimentary implementation of in-memory data tree