Tree methods: map, DFSelect and BFSelect added.