clone function

Clones the given simplex tree.