Added basic bfs and dfs methods