modify Fptree.java