Create tree.java

fixed delete method