Implemented TreePFFS