Create maxtree.java