Added tree.py
Working TREE