Give choice between bfs and cfs