Removed unique_ptr from tree's internal representation