add pacman_dfs with stack