Implemented traversals, added Visitor interface template.