added Visitor class and accept(Visitor&) methods to Node, File and Directory