updating Symmetric_Tree using both recursive and iterative way