add SameTree.java class