Change BFS to BFT, DFS to DFT