A Java trees merger program