update SameTree.java