Update SearchTree.java

Changed the DFS method