Fix BF-traversal, move DF-traversal to traversal module and fix it as well.