Added tree implementation as an alternative function approximator