implemented and added new tree algorithm

- is tree symmetric