started tree.py. Working on tree-simple.py, the heart of the algorithm