add methods to apply function & return an array
adds method to get tree nodes from paramtermap