Prepare DataStructures/Tree trait and companion object