Encodes tree structure as nested set interval as described by Dan Hazel (2008) and Vadim Tropashko (2005). WIP!