5. dfs and FindAllOccurrences (with visitor) implemented