Subtree insertion and removal