move depth-first search & breadth-first search into module, refactor tree_node.rb
refactor knights_travails.rb