chapter 5.2 added

dfs bfs and some applicable implementation