Full algorithm implemented.
- attributes working
- recursive tree pattern also work