tree simulator in P system