add kadang terbesar with bfs and dfs