A factory that returns an optionally-typed, Tree data structure instance with breadth- and depth-first searching capabilities.