added __iter__ for iteration
trees modification